<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}"/>
    <title></title>
    <script th:src="@{/plugins/jQuery/jquery-2.2.3.min.js}"></script>
</head>
<body th:fragment="copyright">
<section class="mesContent">
    <section class="content-header">
        <h3>
            <span th:text="${headerMess}"></span>
            <small>操作列表</small>
        </h3>
    <div class="row">
        <div th:each="opts:${session.WEBOPTS}">
            <div class="col-md-2" th:if="${opts.href == '/MpsOpts/Save'}">
                <a th:href="@{/MpsOpts/goMpsOptsAdd(id=${f_I})}" class="btn btn-block btn-primary">新增</a>
            </div>
        </div>
    </div>
    <div class="row">
        <table class="table table-bordered table-hover">
            <thead>
            <tr>
                <th style="text-align: center"><input type="checkbox"/></th>
                <th style="text-align: center">名称</th>
                <th style="text-align: center">图标</th>
                <th style="text-align: center">路径</th>
                <th style="text-align: center">说明</th>
                <th style="text-align: center">排序</th>
                <th style="text-align: center">状态</th>
                <th style="text-align: center">操作</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="item:${mpsFunOptsList}" style="text-align: center">
                <td><input type="checkbox" th:value="${item.id}"/></td>
                <td th:text="${item.name}"></td>
                <td th:text="${item.iconCls}"></td>
                <td th:text="${item.href}"></td>
                <td th:text="${item.descr}"></td>
                <td th:text="${item.sort}"></td>
                <td th:text="${item.status}"></td>
                <td>
                <span th:each="opts:${session.WEBOPTS}">
                    <span th:if="${opts.href == '/MpsOpts/Delete'}">
                        <a th:href="@{/MpsOpts/Delete(id=${item.id})}" onclick="return confirm('确定删除?');">删除</a>
                    </span>
                    <span th:if="${opts.href == '/MpsOpts/Update'}">
                        <a th:href="@{/MpsOpts/goMpsOptsEdit(id=${item.id})}">修改</a>
                    </span>
                </span>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <script th:src="@{/bootstrap/js/bootstrap.min.js}"></script>
</section>
</body>
</html>